//
//  BCProjectDetailSourceModel.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/22.
//  Copyright © 2018年 guoshikeji. All rights reserved.
//

#import <Foundation/Foundation.h>

@class BCProjectDetailData;


typedef NS_ENUM(NSInteger,BCProjectDetailSectionType) {
    BCProjectDetailSectionTypeProjectData = 0,//头部数据
    BCProjectDetailSectionTypeJoinPeoples,//参与人数
    BCProjectDetailSectionTypeRiches,//富豪前三甲
    BCProjectDetailSectionTypeJoinRules,//参与规则
    BCProjectDetailSectionTypeProjectIntrduction,//产品介绍
    BCProjectDetailSectionTypeInstruction,//产品说明
    BCProjectDetailSectionTypeCommonProblems,//常见问题
};


//////////////////////////////// 参与规则model ///////////////////////////////////////////////////
@interface BCProjectDetailJoinRuleModel : NSObject

/**
 *ruleTitle
 */
@property (nonatomic, copy) NSString *title;

/**
 *ruleContent
 */
@property (nonatomic, copy) NSString *content;

/**
 *detail
 */
@property (nonatomic, copy) NSString *details;


@end
////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////// 产品介绍model ///////////////////////////////////////////////////
@interface BCProjectDetailIntroductionModel : NSObject

/**
 *introduction
 */
@property (nonatomic, copy) NSString *introduction;

@end
////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////// 常见问题model ///////////////////////////////////////////////////
@interface BCProjectDetailCommonProblemModel : NSObject

/**
 *question
 */
@property (nonatomic, copy) NSString *question;

/**
 *answer
 */
@property (nonatomic, copy) NSString *answer;

@end
////////////////////////////////////////////////////////////////////////////////////////////////



/**
 管理section
 */
@interface BCProjectDetailSectionModel : NSObject

/**
 *BCProjectDetailSectionType
 */
@property (nonatomic, assign) BCProjectDetailSectionType sectionType;

/**
 *sectionTitle
 */
@property (nonatomic, copy) NSString *sectionTitle;

/**
 *sectionDetails
 */
@property (nonatomic, copy) NSString *sectionDetails;

/**
 *detailButtonName
 */
@property (nonatomic, copy) NSString *detailButtonImageName;

/**
 *sectionURL
 */
@property (nonatomic, copy) NSString *sectionURL;

/**
 *needRightArrow 是否需要右侧指示箭头
 */
@property (nonatomic, assign) BOOL needRightArrow;

/**
 *canClick 是否允许点击整个
 */
@property (nonatomic, assign) BOOL canClick;


/**
 *dataSource 每个section自己对应的数据源
 */
@property (nonatomic, strong) NSMutableArray *dataSource;

/**
 *isHandleData 是否已经处理了数据资源 判断是否需要使用占位视图替代
 */
@property (nonatomic, assign) BOOL isHandleData;

/**
 *placeholderNumbres 占位视图cell的numbers
 */
@property (nonatomic, assign) NSInteger placeholderNumbres;

@end


/**
 管理项目明细视图资源以及数据资源
 */
@interface BCProjectDetailSourceModel : NSObject

/**
 *isHandleData 是否已经处理了数据资源 判断是否需要使用占位视图替代
 */
@property (nonatomic, assign) BOOL isHandleData;

#pragma mark - 头部视图资源


#pragma mark - section和cell
/**
 *sectionSource
 */
@property (nonatomic, strong) NSMutableArray <BCProjectDetailSectionModel *> *sectionSource;



- (void)handleData:(BCProjectDetailData *)data;

@end

